package com.wnm.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wnm.pojo.Goods;

public interface GoodsDao {
	public List<Goods> findNewGoods();

	public List<Goods> findHotGoods();
	
	public int findCountByCid(int cid);
	
	public List<Goods> findPageByCidAndCurrertPage(@Param("cid")int cid, @Param("currentPage")int currentPage);

	public List<Goods> findGoodsBySalesnums();

	public Goods findGoodsByGid(int gid);

	public List<Goods> findAllGoods(int currentPage);

	public int findCount();

	public List<Goods> findPageByCondition(@Param("condition")String condition,@Param("index")int index);

	public int findCountByCondition(String condition);


}
